//
//  huaiheHomeVC.m
//  huaihe
//
//  Created by 暗流澎涌 on 2024/3/7.
//

#import "huaiheHomeVC.h"
#import "huaiheMeditationVC.h"

#import "huaiheWebVC.h"
#import "huaiheMeVc.h"
@interface huaiheHomeVC ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bgvheight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *itemHeight;

@end

@implementation huaiheHomeVC
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController.navigationBar setHidden: YES];
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [self.navigationController.navigationBar setHidden: NO];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    if ([UIScreen mainScreen].bounds.size.height > 799){
        self.bgvheight.constant  =590;
        self.itemHeight.constant = 164;
    }else{
        self.bgvheight.constant  =400;
        self.itemHeight.constant = 134;
        
    }
    
    
}

//设置

- (IBAction)huaiheSetting:(id)sender {
    
    huaiheMeVc * mevc = [[huaiheMeVc alloc]init];
    [self.navigationController pushViewController:mevc animated:YES];
}

//手机字体
- (IBAction)phoneFont:(id)sender {
    
    huaiheWebVC * vc =[[huaiheWebVC alloc]init];
    NSString * Url =  @"http://huaihe.ktfgw.top/zitiH5/huaihe/index.html";

    vc.huaihetitle = @"";
    vc.Huaihe_url = Url;
    [self.navigationController pushViewController:vc animated:YES];
}
//字体预览
- (IBAction)HuaihefontLook:(id)sender {
    huaiheWebVC * vc =[[huaiheWebVC alloc]init];
    NSString * Url =  @"http://huaihe.ktfgw.top/zitiH5/huaihe/index.html#/preview";

    vc.huaihetitle = @"字体预览";
    vc.Huaihe_url = Url;
    [self.navigationController pushViewController:vc animated:YES];
    
}
//冥想
- (IBAction)huaiheMeditation:(id)sender {
    
    huaiheMeditationVC * huaihe_vc = [[huaiheMeditationVC alloc]init];
    [self.navigationController pushViewController:huaihe_vc animated:YES];
    
}
@end
